package aop_advice;

import java.lang.reflect.Method;

import org.springframework.aop.AfterReturningAdvice;

public class LoggingAfterReturningAdvice implements AfterReturningAdvice {

		//returnValue : 메서드에 의해서 변환되는 값
		//method : 호출되는 메서드
		//arg1: 메서드의 매개변수
		//target: method invocation.null값
	
	
	@Override
	public void afterReturning(Object returnValue, Method method, Object[] arg2,
			Object target) throws Throwable {
		String methodName = method.getName();
		System.out.println(methodName + " is called");
		

	}

}
